import axios from '@/util/request'

export const queryPage = (name,pageNum,pageSize) =>{
    return axios({
        url:'/spcifyResults/page',
        method:'get',
        params:{
            name,pageNum,pageSize
        }
    })
}


export const updateById = data =>{
    return axios({
        url:'/spcifyResults/update',
        method:'post',
        data:data
    })
}

export const deleteById = (id) =>{
    return axios({
        url:'/spcifyResults/delete',
        method:'get',
        params:{
            id
        }
    })
}

export const updateByShoeId = data =>{
    return axios({
        url:'/spcifyShoes/update',
        method:'post',
        data:data
    })
}


export const queryAll =()=>{
        return axios({
        url:'/types/queryAll',
        method:'get',

    })
}